﻿#include "formhelp.h"
#include "ui_formhelp.h"

#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif


#include <QDebug>
#include <QApplication>

FormHelp::FormHelp(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::FormHelp)
{
    ui->setupUi(this);

    // 初始化
    initUI();
    init();
}

FormHelp::~FormHelp()
{
    delete ui;
}

void FormHelp::initUI()
{
    ui->tbHelp->setSearchPaths(QStringList() << qApp->applicationDirPath());
    ui->tbHelp->setSource(QUrl::fromLocalFile("HELP.html"));

    //ui->tbHelp->setHtml(QStringLiteral( "<h1>请确保一(二)级伺服电机的连接和训练考核要求一致,否则请断开供电开关重新连接伺服电机后再打开供电开关, 并重启软件!</h1><h1>请参考以下流程步骤进行操作:</h1>" ));
    //ui->tbHelp->setSource(QUrl::fromLocalFile(QStringLiteral("%1/HELP.html").arg(qApp->applicationDirPath())));
}

void FormHelp::init()
{
}
